﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;

using BLL;

namespace CRM.GUI.QLCuocGoi
{
    public partial class frmManageCall : DevExpress.XtraEditors.XtraForm
    {
        public frmManageCall()
        {
            InitializeComponent();
            grdViewCTCuocGoi.BestFitColumns();
            grdViewCTCuocGoi.OptionsView.ColumnAutoWidth = false;
            grdViewCTCuocGoi.ScrollStyle = ScrollStyleFlags.LiveHorzScroll | ScrollStyleFlags.LiveVertScroll;
            grdViewCTCuocGoi.HorzScrollVisibility = ScrollVisibility.Always;
            dpStartDate.Format = DateTimePickerFormat.Custom;
            dpStartDate.CustomFormat = "dd/MM/yyyy";
            dpEndDate.Format = DateTimePickerFormat.Custom;
            dpEndDate.CustomFormat = "dd/MM/yyyy";
            IntialLoad();
        }

        private void IntialLoad()
        { 
            Administrators ad = new Administrators();
            grdLookUpCA.Properties.DataSource = ad.GetAllUser();
            grdLookUpCA.Properties.DisplayMember = "FirstName";
            grdLookUpCA.Properties.ValueMember = "UserID";
        }

        private void btnFilter_Click(object sender, EventArgs e)
        {

        }

    }
}